package top.zackyoung.bbs.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zackyoung.bbs.entity.Tag;
import top.zackyoung.bbs.mapper.TagMapper;

import java.util.List;

/**
 * @author: ZackYoung
 * @time: 2020/6/14
 */
@Service
public class TagService {
    @Autowired
    private TagMapper tagMapper;

    public List<Tag> queryOnTag(String type) {
        List<Tag> tags = tagMapper.queryOnTag(type);
        return tags;
    }
}
